'''
Created on 22 mai 2009

@author: theo
'''

from util.file_util import *
from reader.file_reader import FileLineReader
from manager.bean_store      import *

class PdfLineReader:
    '''
    classdocs
    '''


    def __init__(self, document):
        '''
        Constructor
        '''
        self.document = document
        textFilename = document[0:-4]+".txt"
        convertPdfToText(document, textFilename)
        self.fileReader = FileLineReader(textFilename)
    def open(self):
        self.fileReader.open()
        
        
    def close(self):
        self.fileReader.close()
    
    def readNextLine(self):
        return self.fileReader.readNextLine()
    
    def jumpToBegining(self):
        self.fileReader.jumpToBegining()